package com.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.springboot.returndata.vo.blog.BlogCommentVo;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 文章评论
 * </p>
 *
 * @author zyj
 * @since 2023-05-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("blog_comment")
public class BlogCommentEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文章id
     */
    @TableField("article_id")
    private Integer articleId;

    /**
     * 评论用户id
     */
    @TableField("comment_user_id")
    private Integer commentUserId;

    /**
     * 回复用户id
     */
    @TableField("parent_comment_user_id")
    private Integer parentCommentUserId;

    /**
     * 回复评论id
     */
    @TableField("parent_comment_id")
    private Integer parentCommentId;

    /**
     * 评论内容
     */
    @TableField("comment_content")
    private String commentContent;

    /**
     * 评论时间
     */
    @TableField("comment_time")
    private String commentTime;

    /**
     * 评论地址
     */
    @TableField("comment_address")
    private String commentAddress;

    /**
     * 评论操作系统
     */
    @TableField("comment_system")
    private String commentSystem;

    /**
     * 评论浏览器类型
     */
    @TableField("comment_browser")
    private String commentBrowser;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
